export const ADD_TO_SELECTED = 'ADD_TO_SELECTED';
export const DELETE_FROM_SELECTED = 'DELETE_FROM_SELECTED';
export const MULTIPLE_ADD_TO_SELECTED = 'MULTIPLE_ADD_TO_SELECTED';

export function addToSelected(name,data) {
    return {
        type:ADD_TO_SELECTED,
        payload:{
            name,
            data
        }
    }
}

export function deleteFromSelected(name,data) {
    return {
        type:DELETE_FROM_SELECTED,
        payload:{
            name,
            data
        }
    }
}

export function multipleAddToSelected(name,data) {
    return {
        type:MULTIPLE_ADD_TO_SELECTED,
        payload:{
            name,
            data
        }
    }
}